//**********菜单按钮***********/;
import request from '@/utils/request.js';

/**
 * 保存
 * @doc http://hanma-lesscode.hc-iiot.com/swagger-ui.html#!/
 * data 参数 
 *  access:'', // 	类型:boolean 非必填
 *  action:'', //操作名称 	类型:string 非必填
 *  appId:'', //$column.comments 	类型:integer 非必填
 *  id:'', //$column.comments 	类型:integer 非必填
 *  name:'', //描述 	类型:string 非必填
 * @returns
 * ********
 */
export function postHmaction(data={}, config={}){
  return request({
    method: 'post',
    data,
    url: `/api/hmaction`,
    ...config,
  }) 
}

/**
 * 修改
 * @doc http://hanma-lesscode.hc-iiot.com/swagger-ui.html#!/
 * data 参数 
 *  access:'', // 	类型:boolean 非必填
 *  action:'', //操作名称 	类型:string 非必填
 *  appId:'', //$column.comments 	类型:integer 非必填
 *  id:'', // 	类型:integer 非必填
 *  name:'', //描述 	类型:string 非必填
 * @returns
 * ********
 */
export function putHmaction(data={}, config={}){
  return request({
    method: 'put',
    data,
    url: `/api/hmaction`,
    ...config,
  }) 
}

/**
 * 删除
 * @doc http://hanma-lesscode.hc-iiot.com/swagger-ui.html#!/
 * data 参数 // 类型 array
 * []integer
 * @returns
 * ********
 */
export function deleteHmaction(data=[], config={}){
  return request({
    method: 'delete',
    data,
    url: `/api/hmaction`,
    ...config,
  }) 
}

/**
 * 详情
 * @doc http://hanma-lesscode.hc-iiot.com/swagger-ui.html#!/
 * params_in_path 参数 
 * id:'', //id 必填
 * @returns
 * ********
 */
export function getHmactionInfoById(params_in_path, config={}){
  return request({
    method: 'get',
    url: `/api/hmaction/info/${params_in_path.id}`,
    ...config,
  }) 
}

/**
 * 列表
 * @doc http://hanma-lesscode.hc-iiot.com/swagger-ui.html#!/
 * params 参数 
 * appId:'', //appId 必填
 * @returns
 * ********
 */
export function getHmactionList(params={}, config={}){
  return request({
    method: 'get',
    params,
    url: `/api/hmaction/list`,
    ...config,
  }) 
}